package com.tt.dp.factory.abs.creator;

import com.tt.dp.factory.abs.productos.Pizza;

public abstract class PizzaStore {

    public Pizza orderPizza(String type){

        Pizza pizza = createPizza(type);

        pizza.prepare();
        pizza.cut();
        pizza.bake();
        pizza.box();
        return pizza;
    }

    protected abstract Pizza createPizza(String type);

    public static void main(String[] args) {

        PizzaStore store = new NYPizzaStore();
        store.orderPizza("1");
    }
}
